home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1297 / AMOSLIST / text0027.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.4 KB  |  38 lines

  1. On 01-Dic-97, Declan_Gorman@modusmedia.com wrote: GUI Problem
  2.  
  3. >     Basically what I want to do is display the slected item from the 
  4. >     listview in a text gadget.  It works fine only whenever I select the 
  5. >     first item in the listview it will not display it.  Every other item 
  6. >     is diplay without a problem.  The code is as follows......
  7. >     
  8. >     S_VCE$=Gui Read$(1,0)
  9. >     If Gui Read(1,0) the Gui Set 1,9,0,Varptr$(S_VCE$)
  10. >     
  11. >     Any ideas what is going wrong?
  12.  
  13.  
  14. the first item of a listview is the number 0.... and so the above 'IF' skip
  15. it! Just use:
  16.  
  17. S_VCE$=Gui Read$(1,0) : Gui Set 1,9,0,Varptr$(S_VCE$) 
  18.  
  19. -- 
  20.  
  21.  
  22. Bye!
  23.  
  24.  
  25.                                      !!!
  26.                                      o o
  27.    +-----------------------------oOO-(_)-OOo----------------------------+
  28.    |                                                                    |
  29.    |  Pietro Ghizzoni - Dairymen Soft              __  /// Amiga 12OO   |
  30.    |     E-Mail:  ghizzo@agonet.it                 \\\/// 'O3O  5OMhz   |
  31.    |            Team AMIGA                          \/// 1OMB - CD4x    |
  32.    |                                                                    |
  33.    | Amos Professional Team Coordinator               AMIGA RULEZ!!     |
  34.    |                                                                    |
  35.    +--------------------------------------------------------------------+
  36.  
  37.  
  38.